package com.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description:
 * @author: ChenZhiXiang
 * @create: 2019-06-14 15:15
 **/
@RestController
public class UserController {

    @Value("${foo}")
    private String name;

    @GetMapping("/client")
    public String get(){
        return "hello,"+name;
    }
}
